package org.kzwl.comm.pojo.dto.book;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.kzwl.comm.advice.Consts;

import java.math.BigDecimal;

@Data
@ApiModel("tushu")
public class MyBooksItem {

    @ApiModelProperty(" 图书编号")
    private Integer cuBookId;

    @ApiModelProperty("图书名称")
    private String cuBookName;

    @ApiModelProperty("出版社")
    private String cuBookPress;

    @ApiModelProperty("作者")
    private String cuBookAuthor;

    @ApiModelProperty("略缩图")
    private String cuBookAbbreviation;

    public void setCuBookAbbreviation(String cuBookAbbreviation) {
        this.cuBookAbbreviation = Consts.MyConsts.IMGURLPATH+cuBookAbbreviation;
    }

    @ApiModelProperty("绘本角标 0-无 1-热门")
    private Integer cuBookLabel;

    /**
     * 简介
     */
    @ApiModelProperty("简介")
    private String cuBookIntroduce;

    /**
     * 摘要
     */
    @ApiModelProperty("摘要")
    private String cuBookAbstract;

    /**
     * 路径
     */
    @ApiModelProperty("路径")
    private String cuBookAddress;

    @ApiModelProperty("上次阅读页数")
    private BigDecimal cuBookUserContinue;

    @ApiModelProperty("总页数")
    private BigDecimal cuBookPages;

    @ApiModelProperty("阅读进度")
    private BigDecimal cuBookUserPercentage;

    @ApiModelProperty("上次阅读的章节")
    private String previous;

    @ApiModelProperty("是否在收藏中 0-否 1-是")
    private Integer cuBookUserIsShow;
}
